home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Compression / tarZan / Source / myBrowserCell.m < prev    next >
Text File  |  1992-07-27  |  1KB  |  37 lines

  1. #import "myBrowserCell.h"
  2. // Created By James T. Romano July 22, 1992 
  3. // Member of the Dynamic Duo of NeXT Computers!
  4. //
  5. // 
  6. // Read it and Weep!
  7.  
  8. @implementation myBrowserCell
  9.  
  10. - drawInside:(const NXRect *)cellFrame inView:controlView
  11. {
  12.     id theBrowserDelegate;
  13.     int row,col;
  14.     
  15.     if (![self isLoaded])
  16.     {
  17.         theBrowserDelegate = [[[[controlView superview] superview] superview] delegate];
  18.         [controlView getRow: &row andCol: &col ofCell:self];
  19.         [theBrowserDelegate browser:nil loadCell:self atRow:row inColumn: col];
  20.     }
  21.     return [super drawInside: cellFrame inView: controlView];
  22. }
  23.  
  24. - highlight:(const NXRect *)cellFrame inView:controlView lit:(BOOL)lit
  25. {
  26.     id theBrowserDelegate;
  27.     int row,col;
  28.     
  29.     if (![self isLoaded]) 
  30.     {
  31.         theBrowserDelegate = [[[[controlView superview] superview] superview] delegate];
  32.         [controlView getRow:&row andCol:&col ofCell:self];
  33.         [theBrowserDelegate browser:nil loadCell:self atRow:row inColumn:col];
  34.     }
  35.     return [super highlight:cellFrame inView:controlView lit:lit];
  36. }
  37. @end